package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqCostSubitem;
import com.ruoyi.hqfinance.mapper.HqCostSubitemMapper;
import com.ruoyi.hqfinance.service.HqCostSubitemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqCostSubitemServiceImpl implements HqCostSubitemService {
    @Autowired
    private HqCostSubitemMapper hqCostSubitemMapper;
    @Override
    public List<HqCostSubitem> selectAll() {
        return hqCostSubitemMapper.selectAll();
    }

    @Override
    public Boolean insert(HqCostSubitem hqCostSubitem) {
        return hqCostSubitemMapper.insert(hqCostSubitem);
    }

    @Override
    public Boolean update(HqCostSubitem hqCostSubitem) {
        return hqCostSubitemMapper.update(hqCostSubitem);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqCostSubitemMapper.deleteById(id);
    }
}
